package com.jiazhong.backend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiazhong.commons.Util.JsonResult;
import com.jiazhong.commons.bean.User;
import org.springframework.stereotype.Service;

@Service
public interface UserService extends IService<User> {
    JsonResult find(int page, int size);

    JsonResult findSearch(String name, int page, int size);

    JsonResult saveUser(User user);

    JsonResult removeUser(String id);

    JsonResult findExists(String column, String value);

    JsonResult updateUserPassword(String id,String oldPass,String newPass);
}
